function ensurePath( path )
%ENSUREPATH Will test for a directory and create it if it doesn't exist.

if exist(path, 'dir') 
    return;
else
    error('Path does not exist.');
end

end

